package cn.clx.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success=true;
    private String message="操作成功";
    private Object resultObj; //要返回一些其他的类型

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public static AjaxResult getAjaxResult(){
        return new AjaxResult();
    }

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }
}
